package com.sc.mapper;

import com.sc.pojo.Menu;
import com.sc.pojo.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Role record);
    int updateByPrimaryKey(Role record);
    List<Role> selectAll(@Param("k")String keyword);
    int openAll(Integer[] ids);
    int closeAll(Integer[] ids);
    int delAll(Integer[] ids);
    int delMenusById(Integer id);
    int insertMenu(@Param("r") Integer roleid, @Param("m") Integer menuid);
}